package com.example.springboot.dao;

import com.example.springboot.entity.Cart;
import com.example.springboot.entity.Order;
import com.example.springboot.entity.OrderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDao {

    int addOrder(Order order);

    List<Order> findByUserid(String userid);

    int deleteById(Integer id);


    int updataStatus(Order order);

    List<Order> findAll();

    int addOrderItem(OrderItem orderItem);

    String findOrderOn(Integer id);

    List<OrderItem> findOrderItem(String orderOn);

    int deleteByOrderOn(String orderOn);

    int updataSpend(Order order);
}
